package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.ApplyTakeCashBiz;
import com.bristua.mall.user.enums.UserCode;
import com.bristua.mall.user.model.condition.applyTakeCash.ApplyTakeCash;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="申请提现",tags={"申请提现"})
public class ApplyTakeCashController {

    @Autowired
    private ApplyTakeCashBiz applyTakeCashBiz;
    @ApiOperation(value="申请提现")
    @PostMapping(value="/api/user/apply/take/cash")
    public Result applyTakeCash(@RequestBody ApplyTakeCash applyTakeCash){
        applyTakeCashBiz.applyTakeCash(applyTakeCash);
        return HandleResultUtil.commonResult(UserCode.APPLY_SUCCESS.getCode(),UserCode.APPLY_SUCCESS.getMsg());
    }
}
